package com.situ.onlinebookstore.front.service;

import com.github.pagehelper.PageInfo;
import com.situ.onlinebookstore.common.entity.Cart;

import java.util.List;

public interface CartService {
    //添加
    int add(Cart cart)throws Exception;

    //删除
    int remove(Cart cart)throws Exception;

    //更新
    int edit(Cart cart)throws Exception;

    //查询
    PageInfo getByUserId(Integer page, Integer limit,Integer userId);

    Cart getById(Integer id);

    List getByIds(Integer[] cartIds);
}
